<?php
//echo print_r($_SESSION);
echo "<h5>Welcome to your personal dashboard " . $_SESSION['fullname'] . "</h5>";
?>
<hr id="hr1"/>
<div id="bio" style="display: none;">
    Your current Bio: <br/><textarea rows="10" cols="50"><?php echo $_SESSION['bio']; ?> </textarea>
</div>

<div id="profilestats" class="widget">
    <?php include "nagbox.php";  ?>
</div>

<div id="cal" class="widget">
<!--    <iframe src="https://www.google.com/calendar/hosted/team2648.com/embed?showTitle=0&amp;showNav=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;mode=AGENDA&amp;height=200&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=team2648.com_a1ur39fpp2cn076ak2q06o8hhc%40group.calendar.google.com&amp;color=%235229A3&amp;ctz=America%2FNew_York" style=" border-width:0 " width="400" height="200" frameborder="0" scrolling="no"></iframe>-->
    <iframe src="https://www.google.com/calendar/hosted/team2648.com/embed?showNav=0&amp;showDate=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;showTz=0&amp;mode=AGENDA&amp;height=200&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=team2648.com_a1ur39fpp2cn076ak2q06o8hhc%40group.calendar.google.com&amp;color=%235229A3&amp;ctz=America%2FNew_York" style=" border-width:0 " width="400" height="200" frameborder="0" scrolling="no"></iframe>
</div>
<?php
if ($_SESSION['type'] == "member")
{
    if (empty($_SESSION['fhrs']))
    {
        echo "<script>";
        echo "var fullname = \"" . $_SESSION['fullname'] . "\";";
        echo "ajaxStats(fullname);";
        echo "</script>";
        echo "<div id=\"stats\" class=\"widget\">";
        echo "Loading Stats...";
        echo "<img alt=\"Loading Stats\"  src=\"img/ajax-loader.gif\"/>";
        echo "</div>";
    } else
    {
        echo "<div id=\"stats\" class=\"widget\">";
        include "dashboard.stats.php";
        //echo"good";
        //echo $_SESSION['fhrs'];
        echo "</div>";
    }
}else if ($_SESSION['type'] == "admin")
{
    //echo "<div id=\"stats\" class=\"widget\">";
    //echo "Loading Stats...";
    //echo "<img alt=\"Loading Stats\"  src=\"img/ajax-loader.gif\"/>";
    //echo "</div>";
}

if ($_SESSION['id'] == "1") // It it blake?

{
    echo "<div id=\"logins\" class=\"widget\">";
    echo "<form name=\"controlsForm\">";
    if($loginsDisabled)
        $cblogin = "checked=\"yes\"";
    else
        $cblogin = "";
    echo "<input id=\"cblogin\" type=\"checkbox\" name=\"loginbox\" ".$cblogin." onClick=\"login()\"/> Disable Login<br />";
    if($registrationDisabled)
        $cbreg = "checked=\"yes\"";
    else
        $cbreg = "";
    echo "<input id=\"cbreg\" type=\"checkbox\" name=\"regbox\" ".$cbreg." onClick=\"reg()\"/> Disable Registration<br />";
    echo "</form>";
    echo "</div>";
}
?>


<div class="clear"></div>
